package cn.xorange.commons.system.mapper.system;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.system.SysUserManageRole;
import com.alibaba.fastjson2.JSONArray;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author : yangjian
 * date : 2025/1/11
 * description :
 */
@Mapper
public interface SysUserManageRoleMapper extends MBaseMapper<SysUserManageRole> {

    @Delete("<script> delete from sys_user_manage_role where user_id in " +
            "<foreach item = 'id' collection = 'userIds' separator=',' open='(' close=')'>" +
            "#{id}" +
            "</foreach></script>")
    int delByUserIds(Long[] userIds);
}
